package org.example.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.excel.metadata.CellExtra;
import org.example.DTO.MatchInfoDTO;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: qiuhongyu
 * @Date: 2024/06/08/10:01
 * @Description:
 */
public class MatchListener extends AnalysisEventListener<MatchInfoDTO> {

    private List<MatchInfoDTO> dataList;

    public MatchListener(List<MatchInfoDTO> dataList) {
        this.dataList = dataList;
    }

    public void invoke(MatchInfoDTO data, AnalysisContext context) {
        dataList.add(data);
    }

    public void doAfterAllAnalysed(AnalysisContext context) {

    }
}
